import request from '@/utils/request'

// 获取分类
export function getCategories(params) {
    return request({
        url: '/categories',
        method: 'get',
        params
    })
}



// 获取指定id详情
export function DetailById(id) {
    return request({
        url: `/categories/${id}`,
        method: 'GET'
    })
}

// 分页
export function CategoryCount(params) {
    return request({
      url: `/categories/count`,
      method: 'GET',
      params
    })
  }